package chapter2;

/**
 * Description:
 *
 * @author liuziyang
 * @date 2021/3/7 21:37
 */
public class SwapTest {
    public static void main(String[] args) {
        FunctionTest a = new FunctionTest();
        FunctionTest b = new FunctionTest();
        System.out.println(a);
        System.out.println(b);

        swap(a, b);

        System.out.println(a);
        System.out.println(b);
    }

    private static void swap(FunctionTest a, FunctionTest b) {
        FunctionTest temp = a;
        a = b;
        b = temp;
    }
}
